﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using Service;

namespace IocDemoApi.Controllers
{
    public class TestController:ApiController
    {
        private Service1 _service;
        public TestController(Service1 service)
        {
            _service = service;
        }
        public IHttpActionResult Get()
        {
            return Ok(_service.GetPing());
        }
    }
}